package org.edu.modules.peixun.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;
import org.edu.common.aspect.annotation.Dict;
import org.jeecgframework.poi.excel.annotation.Excel;
import org.springframework.format.annotation.DateTimeFormat;

import java.io.Serializable;
import java.util.Date;

@Data
@TableName("ve_hr_peixun")
@Accessors(chain = true)
@EqualsAndHashCode(callSuper = false)
@ApiModel(value = "培训表", description = "培训表")
public class VeHrPeixun implements Serializable {
    private static final long serialVersionUID = 1L;

    /**
     * 主键ID,自动增长
     */
    @TableId(type = IdType.ASSIGN_ID)
    @ApiModelProperty(value = "主键ID,自动增长")
    private String id;
    /**
     * 工号
     */
    @Excel(name = "工号", width = 15)
    @ApiModelProperty(value = "工号")
    private String gh;
    /**
     * 姓名
     */
    @Excel(name = "姓名", width = 15)
    @ApiModelProperty(value = "姓名")
    private String xm;
    /**
     * 联系电话
     */
    @Excel(name = "联系电话", width = 15)
    @ApiModelProperty(value = "联系电话")
    private String telphone;
    /**
     * 参加继续教育方式码
     */
    @Dict(dictTable = "ve_dict_dictdata", dicText = "title", dicCode = "modelCode='CJJXJYFS' AND code")
    @Excel(name = "继续教育方式", width = 15, dictTable = "ve_dict_dictdata where modelCode='CJJXJYFS'", dicText = "title", dicCode = "code")
    @ApiModelProperty(value = "参加继续教育方式码")
    private String jxjyfsm;
    /**
     * 报考院校
     */
    @Excel(name = "报考院校", width = 15)
    @ApiModelProperty(value = "报考院校")
    private String school;
    /**
     * 报考专业
     */
    @Excel(name = "报考专业", width = 15)
    @ApiModelProperty(value = "报考专业")
    private String profession;
    /**
     * 进修学历码
     */
    @Dict(dictTable = "ve_dict_dictdata", dicText = "title", dicCode = "modelCode='XL' AND code")
    @Excel(name = "进修学历码", width = 15, dictTable = "ve_dict_dictdata where modelCode='XL' ", dicText = "title", dicCode = "code")
    @ApiModelProperty(value = "进修学历码")
    private String jxxlm;
    /**
     * 导师姓名
     */
    @Excel(name = "导师姓名", width = 15)
    @ApiModelProperty(value = "导师姓名")
    private String dsxm;
    /**
     * 导师联系电话
     */
    @Excel(name = "导师联系电话", width = 15)
    @ApiModelProperty(value = "导师联系电话")
    private String dslxdh;
    /**
     * 报考目的
     */
    @Excel(name = "报考目的", width = 15)
    @ApiModelProperty(value = "报考目的")
    private String target;
    /**
     * 进修开始时间
     */
    @Excel(name = "进修开始时间", width = 15, format = "yyyy-MM-dd")
    @JsonFormat(timezone = "GMT+8", pattern = "yyyy-MM-dd")
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    @ApiModelProperty(value = "进修开始时间")
    private Date jxkssj;
    /**
     * 进修结束时间
     */
    @Excel(name = "进修结束时间", width = 15, format = "yyyy-MM-dd")
    @JsonFormat(timezone = "GMT+8", pattern = "yyyy-MM-dd")
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    @ApiModelProperty(value = "进修结束时间")
    private Date jxjssj;
    /**
     * 申请理由
     */
    @Excel(name = "申请理由", width = 15)
    @ApiModelProperty(value = "申请理由")
    private String reason;
    /**
     * 申请时间
     */
    @Excel(name = "申请时间", width = 15, format = "yyyy-MM-dd")
    @JsonFormat(timezone = "GMT+8", pattern = "yyyy-MM-dd")
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    @ApiModelProperty(value = "申请时间")
    private Date applytime;
    /**
     * 审核时间
     */
    @Excel(name = "审核时间", width = 15, format = "yyyy-MM-dd")
    @JsonFormat(timezone = "GMT+8", pattern = "yyyy-MM-dd")
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    @ApiModelProperty(value = "审核时间")
    private Date audittime;
    /**
     * 审核人工号
     */
    @Excel(name = "审核人工号", width = 15)
    @ApiModelProperty(value = "审核人工号")
    private String auditgh;
    /**
     * 审核人姓名
     */
    @Excel(name = "审核人姓名", width = 15)
    @ApiModelProperty(value = "审核人姓名")
    private String auditxm;
    /**
     * 审核状态
     */
    @Excel(name = "审核状态 ", width = 15, replace = {"待审核_0", "通过_1", " 不通过_2"})
    @ApiModelProperty(value = "审核状态 待审核0 通过1 不通过2 ")
    private Integer auditstatus;
    /**
     * 审核人意见
     */
    @Excel(name = "审核人意见", width = 15)
    @ApiModelProperty(value = "审核人意见")
    private String audityj;
    /**
     * 系统id
     */
//    @Excel(name = "系统id", width = 15)
    @ApiModelProperty(value = "系统id")
    private Integer terminalid;
    /**
     * 教师id
     */
//    @Excel(name = "教师id", width = 15)
    @ApiModelProperty(value = "教师id")
    private String teacherid;
    /**
     * fileid
     */
    @Excel(name = "fileUrl", width = 15)
    @ApiModelProperty(value = "fileUrl")
    private String fileUrl;
    /**
     * 创建时间
     */
    @JsonFormat(timezone = "GMT+8", pattern = "yyyy-MM-dd")
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    @ApiModelProperty(value = "创建时间")
    private Date createTime;
}
